package com.example.foratm.controller;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

/**
 * @Description 本地静态缓存
 * @Author xutao
 * @Date 2022/8/11
 **/
public class LocalCacheUtils {


    private LocalCacheUtils(){
        throw new IllegalStateException("Utility class");
    }

    /**
     *  单位对应编码
     */
    private static final Map<String,String> UNIT = new HashMap<>();
    private static final Map<String,String> PROPERTY = new HashMap<>();

    static {
        UNIT.put("海洋采油厂","01");
        UNIT.put("桩西采油厂","02");
        UNIT.put("河口采油厂","03");
        UNIT.put("孤东采油厂","04");
        UNIT.put("石油开发中心","05");
        UNIT.put("东胜公司","05");
        UNIT.put("海洋石油船舶中心","07");



        PROPERTY.put("affiliatedCommittee","affiliated_committee");
        PROPERTY.put("categoryOne","category_one");
        PROPERTY.put("categoryTwo","category_two");
        PROPERTY.put("categoryThree","category_three");
        PROPERTY.put("professionalSystemType","professional_system_type");
        PROPERTY.put("typeBreakdown","type_breakdown");
        PROPERTY.put("typeDivision","type_division");
    }

    public static Map<String,String> getUnit(){
        return UNIT;
    }

    public static Map<String,String> getProperty(){
        return PROPERTY;
    }



}
